package cn.tl.hrm.client;

import cn.tl.hrm.doc.CourseDoc;
import cn.tl.hrm.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

//搜搜服务的Feign的客户端接口
@FeignClient(value = "hrm-search",fallbackFactory = SearchServiceClientFallbackFactory.class)
public interface SearchServiceClient {
    //添加课程
    @PostMapping("/course/add")
    AjaxResult add(@RequestBody CourseDoc doc);
}
